using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel.Channels;


namespace SlasheneFramework.WCF
{
	public class ReplyToChannelFactory : ProxyChannelFactory<IOutputChannel>
	{
		readonly Uri _ReplyAddress;
		public ReplyToChannelFactory(Uri replyAddress, IChannelFactory<IOutputChannel> inner)
			: base(inner)
		{
			_ReplyAddress = replyAddress;
		}
		public override IOutputChannel CreateChannel(System.ServiceModel.EndpointAddress to)
		{
			return new ReplyToChannel(_ReplyAddress, base.CreateChannel(to));
		}
		public override IOutputChannel CreateChannel(System.ServiceModel.EndpointAddress to, Uri via)
		{
			return new ReplyToChannel(_ReplyAddress, base.CreateChannel(to, via));
		}
	}
}
